﻿<%@ Page Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true" CodeBehind="CategoryList.aspx.cs" Inherits="com.dz.web.CategoryList"  %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphContent" runat="server">
<LINK rel=stylesheet type=text/css href="/style/category.css?t=10">

<script>
function SetHeaderCss(pid)
{
    var submenus= $("b-menu").getElementsByTagName("li");
   for(var index=0;index<submenus.length;index++)
   {
       if(index==pid)
       {
           BindSubCategory(pid,submenus[index]);
           break;
       }
       
   }
}
</script>
<asp:Label ID="lblScript" runat="server"></asp:Label>
<SCRIPT text=javascript>
var zindex=1000;
var last_obj=null;
var cur_obj=null;
function Show(obj)
{
    zindex++;
    if(cur_obj!=null)
    {
        last_obj=obj;
    }
    cur_obj=obj;
    obj.parentNode.className=  obj.parentNode.className+" dl110111";
    obj.style.zIndex=zindex;
    obj.childNodes[1].style.display="";
   
}
function Hidden(obj)
{
    if(last_obj!=null)
    {
        last_obj.style.marginLeft="0px"
    }
    obj.style.marginLeft="5px"
     obj.parentNode.className="dl101216";
    obj.childNodes[1].style.display="none";
   
}


</SCRIPT>




<DIV class="wrap clear">

<DIV class=main>
<div class="leftc">
<div class="title">
 <SPAN class="nav">  
            <A href="#" onclick="GoType(1,'1',this)" id="click" class="current">点击排行</A>
            <A href="#" onclick="GoType(1,'2',this)">收藏排行</A>               
            <A href="#" onclick="GoType(1,'3',this)">更新排行</A>
            <A href="#" onclick="GoType(1,'4',this)">字数排行</A>
           
            </SPAN>
</div>
<div class=box_l>

<DIV class=list>

<DIV id=d_2 class=listcon>
<label id="lblBook"></label>
</DIV></DIV></div>

<label id="lblPager"><img src="/images/loading.gif" border="0" /> </label>
</div>
<script>
var c_cur_link=$("click");
function GoType(pageIndex,order,obj)
{
    c_cur_link.className="";
    obj.className="current";
    c_cur_link=obj;
    GoPageInit(pageIndex,order);
}
var categoryId="<%=m_category_id_list %>";
var imgPath="<%=com.dz.common.AppConfig.ICONPath%>";
var c_totalPageSize=1;
var c_pageIndex=1;
var c_order="1";//点击
var pageSize=30;
function GoPageInit(pageIndex,order)
{
    c_pageIndex=pageIndex;
    c_order=order;
    MyAjax.GetDataList(pageIndex,pageSize,c_totalPageSize,"book",categoryId+"$"+c_order, ShowCallBack);
}
function ShowCallBack(result)
{

    eval(result.value);
    var sb=new StringBuilder();
    if(typeof(totalCount)!="undefined" && totalCount!=null)
    {
        if(totalCount!=0)
        {
            c_totalPageSize=totalCount;
        }
    }

    if(typeof(list)!="undefined" && list!=null)
    {
  
        for(var index=0;index<list.length;index++)
        {
            sb.Append("<DL class=\"dl101216\">");
            sb.Append("<DT class=\"dt101216\" onmouseover=\"Show(this)\" onmouseout=\"Hidden(this)\">");
            sb.Append("<A href=\"/");
            sb.Append(list[index][0]);
            sb.Append(".aspx\" target=\"_blank\"><img src=\""+imgPath+"/"+ list[index][0]+".jpg\"></a>");
            sb.Append("<DIV style=\"DISPLAY: none\" id=\"my_photo\" class=\"photo_content\"><DIV class=\"photo_text\">");
            sb.Append("<DIV class=name><a class=\"link3\" href=\"/"+list[index][0]+".aspx\" target=\"_blank\">"+list[index][1]+"</a></div>");
            sb.Append("<DIV class=name><B>"+list[index][9]+ "&nbsp;&nbsp;&nbsp;&nbsp;著</B></DIV>");
            sb.Append("<DIV class=\"name des\">"+list[index][4]+"</DIV>");
            sb.Append("<DIV class=\"name name1\">点击："+list[index][5]+ "&nbsp;&nbsp;&nbsp;&nbsp;收藏："+list[index][6]+"</DIV>");
            sb.Append(" <DIV class=\"name name1\"><A class=\"link1\" href=\"/chapterList/"+ list[index][0]+".aspx\" target=\"_blank\"></a>");
            sb.Append("</DIV></DIV></DIV></DT>");
            sb.Append("<DD class=nl>["+list[index][2]+ "]-["+list[index][3]+"]</dd>");
            sb.Append("<DD class=nc><a href=\"/"+list[index][0]+".aspx\" target=\"_blank\">"+list[index][1].substr(0,8)+"</a></dd></dl>");
            
        }
        $("lblBook").innerHTML=sb.ToString();
        $("lblPager").innerHTML=t_pager;
    }
}
GoPageInit(1,"1");

function GoPage(index)
{
    GoPageInit(index,c_order);
     
}

</script>
<DIV class=box_r>

<script type="text/javascript"><!--
google_ad_client = "ca-pub-0882577101519922";
/* 分类列表 */
google_ad_slot = "8276507137";
google_ad_width = 250;
google_ad_height = 250;
//-->

</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<div class="hotbook">
<div class="title"><span style=" margin-left:10px;"></span>正在更新</div>
<asp:Label ID="lblbookList" runat="server"></asp:Label>
</div>

<div style="margin-bottom:10px;">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-0882577101519922";
/* 列表页右下角 */
google_ad_slot = "6714990165";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<div>
<script type="text/javascript"><!--
google_ad_client = "ca-pub-0882577101519922";
/* 分类文字广告 */
google_ad_slot = "1853929674";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>

</DIV></DIV></DIV>

</asp:Content>
